#pragma once

enum class HttpStatusCode
{
    Ok = 200,
    NotModified = 304,
    NotFound = 404,
};

inline const char *httpStatusCodeToStr(HttpStatusCode ec) {
    switch (ec) {
    case HttpStatusCode::Ok:
        return "OK";
    case HttpStatusCode::NotModified:
        return "Not Modified";
    case HttpStatusCode::NotFound:
        return "Not Found";
    default:
        return "OK";
    }
}
